package com.jbm.jbmsupplier.util;

import java.io.Serializable;

/**
 * Created by root on 16-12-20.
 */
public class IEGuard implements Serializable
{
	public IEGuard ()
	{
		back = false;
		method = "";
		errorinfo = "";

		start = 0;
		count = 0;
	}

	public IEGuard ( boolean back, String errorinfo )
	{
		this();

		this.back = back;
		this.errorinfo = errorinfo;
	}

	public IEGuard ( String method, int eguard_id, int gi_id )
	{
		this();

		this.method = method;
		this.eguard_id = eguard_id;
		this.gi_id = gi_id;
	}

	public IEGuard ( String method, int eguard_id, int ebt_id, String mac, String bt_no )
	{
		this();

		this.method = method;
		this.eguard_id = eguard_id;
		this.ebt_id = ebt_id;
		this.mac = mac;
		this.bt_no = bt_no;
	}

	public IEGuard ( String method, int area_id, int vil_id, String village, int unit_id, String unit, String mac, String open_key, String door_no, String bt_no )
	{
		this();

		this.method = method;
		this.area_id = area_id;
		this.vil_id = vil_id;
		this.village = village;
		this.unit_id = unit_id;
		this.unit = unit;
		this.mac = mac;
		this.open_key = open_key;
		this.door_no = door_no;
		this.bt_no = bt_no;
	}

	private static final long serialVersionUID = 3500001L;

	public boolean back;
	public String method;
	public String errorinfo;

	public int eguard_id;
	public String equard_code;
	public String equard_name;
	public int gi_id;
	public String open_key;
	public String type;
	public String status;
	public String create_date;
	public int create_id;
	public String expire_date;
	public String close_date;
	public int close_id;

	public int area_id;
	public int vil_id;
	public String village;
	public int unit_id;
	public String unit;
	public String mac;
	public String door_no;
	public String bt_no;

	public int ebt_id;

	public int start;
	public int count;
}
